'use strict';
var f1Controller = require('./f1.controller');
var f1View = require('./f1.view.html');
var f2Controller = require('./f2.controller');
var f2View = require('./f2.view.html');
var fromController = require('../produce/from10.controller');
var fromView = require('../produce/from10.view.html');
exports = module.exports = function ($scope, modalPlus, $uibModal){
    $scope.try1 = "111";
    $scope.f11 = function () {
        modalPlus.open($scope, {
            windowClass: "",
            templateUrl: f1View,
            controller: f1Controller
        })
    }
    $scope.f12 = function () {
        modalPlus.open($scope, {
            windowClass: "",
            templateUrl: fromView,
            controller: fromController,
            size: "lg"
        })
    }
    $scope.adminResult = [];
    $scope.bwtype = 123;
    $scope.f13 = function () {
        $uibModal.open({
            templateUrl: f2View,
            controller: f2Controller,
            backdrop: "true",
            windowClass: "sub1centercenter",
            size: "lg",
            scope:$scope.$new(),
            resolve: {
                result: function () {
                    return $scope.adminResult||[];
                },
                bwtype: function () { return $scope.bwtype; }
            }
        })
        .result.then(function (item) {
            $scope.adminResult = item.result;
        }, function () {  });
    }
}
